import { quill } from "../js/index.js";
export const eventBus = new Vue({
    created() {
        
        this.$on("edit", this.edit);
        this.$on("save", this.save);
    },
    data: {
        list: [],
        seen:true,
    },
    watch: {
        
    },
    methods: {
        edit() {
            this.seen = false;
        },
        save() {
            let html = quill.root.innerHTML;

            console.log(html);
            if (html!=="<p><br></p>") {
                this.seen = true;   
                this.list.push(quill.root.innerHTML);
            }
            
        }
    },

});